package com.ruoyi.product.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 秒杀对象 tb_course_activity
 * 
 * @author Sun
 * @date 2023-01-30
 */
public class TbCourseActivity extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Integer activityId;

    /** 活动名称 */
    @Excel(name = "活动名称")
    private String activityName;

    /** 活动课程ID */
    @Excel(name = "活动课程ID")
    private Integer courseId;

    /** 课程名称 */
    @Excel(name = "课程名称")
    private String courseName;

    /** 活动数量 */
    @Excel(name = "活动数量")
    private Long activityCount;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date beginTime;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 活动状态 0未开始 1正在秒杀 2已结束 */
    @Excel(name = "活动状态 0未开始 1正在秒杀 2已结束")
    private Integer activityState;

    /** 删除标志（0代表存在 2代表删除） */
    private Integer delFlag;

    public void setActivityId(Integer activityId) 
    {
        this.activityId = activityId;
    }

    public Integer getActivityId() 
    {
        return activityId;
    }
    public void setActivityName(String activityName) 
    {
        this.activityName = activityName;
    }

    public String getActivityName() 
    {
        return activityName;
    }
    public void setCourseId(Integer courseId) 
    {
        this.courseId = courseId;
    }

    public Integer getCourseId() 
    {
        return courseId;
    }
    public void setCourseName(String courseName) 
    {
        this.courseName = courseName;
    }

    public String getCourseName() 
    {
        return courseName;
    }
    public void setActivityCount(Long activityCount) 
    {
        this.activityCount = activityCount;
    }

    public Long getActivityCount() 
    {
        return activityCount;
    }
    public void setBeginTime(Date beginTime) 
    {
        this.beginTime = beginTime;
    }

    public Date getBeginTime() 
    {
        return beginTime;
    }
    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }
    public void setActivityState(Integer activityState) 
    {
        this.activityState = activityState;
    }

    public Integer getActivityState() 
    {
        return activityState;
    }
    public void setDelFlag(Integer delFlag) 
    {
        this.delFlag = delFlag;
    }

    public Integer getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("activityId", getActivityId())
            .append("activityName", getActivityName())
            .append("courseId", getCourseId())
            .append("courseName", getCourseName())
            .append("activityCount", getActivityCount())
            .append("beginTime", getBeginTime())
            .append("endTime", getEndTime())
            .append("activityState", getActivityState())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("delFlag", getDelFlag())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
